#define  _CRT_SECURE_NO_WARNINGS
#include<iostream>
#include<vector>
#include<string.h>
#include<algorithm>
#include<functional>
using namespace std;

class mycompare
{
public:
	bool operator()(int v1, int v2)
	{
		return v1 > v2;
	}
 };


void test01()
{
	mycompare m1;
	vector<int>v1;
	v1.push_back(10);
	v1.push_back(20);
	v1.push_back(30);
	v1.push_back(50);
	v1.push_back(1);
	sort(v1.begin(), v1.end(),m1);
	for (vector<int>::const_iterator it = v1.begin(); it != v1.end(); it++)
	{
		cout << *it << endl;

	}

}

int main()
{
	test01();
	return 0;
}